﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GAM_Web_Designer_Pro.Forms {
    public partial class NewFolderForm : Form {

        private string dirName;

        public string DirectoryName {
            get {
                return dirName;
            }
            set {
                dirName = value;
            }
        }

        public NewFolderForm() {
            InitializeComponent();
        }

        private void button1_Click( object sender, EventArgs e ) {
            dirName = nameTB.Text.Trim();
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void cancelButton_Click( object sender, EventArgs e ) {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}
